class User < ActiveRecord::Base
  has_many :reviews
  has_many :proposals, :through => :reviews
  
  def assigned (proposal)
    @reviews = proposal.reviews.find(:all)
    @test = "0"
    @reviews.each do |review|
      if review.user_id == id
        return true
      end
    end
  end
end
